﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="examination.aspx.cs" Inherits="Manage_Emp_examination" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>在线培训系统-课程测试</title>
    <style type="text/css">
html, body {
    margin:0;
	padding:0;
	background-color: #ffffff;
	height: 100%;
}
body {
  font-size: 12px;
  line-height: 1.8;
  font-family: "微软雅黑";
}

form,h1,h2,h3,ul,ol,div{margin: 0; padding:0;}
h3{color:#0889CB;clear:both; float:left;font-family: "微软雅黑";}
div.tips {
        width:1025px;
	    height: 796px;
	    margin:0 auto auto -512px;
	    top: 0;
	    left: 50%;
	    position: absolute;
}
.menutitle
{
	color:#ffffff; font-size:20px; font-weight:bold;  
}
.topclassName{ color:#0889CB; font-size:24px;  font-weight:bold;}
.classcontent{background-image:url('../../images/learn_mid_bg.png'); background-repeat:repeat-y; height:auto; width:1025px; margin-top:-1px; padding-left:130px; padding-top:20px; padding-right:10px; padding-bottom:20px}
</style>


</head>
<body >
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
   <!--  快速转换位置按钮  -->
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
    <div class="tips">
        <table  width="1025" height="99" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<table width="1025" height="99" border="0" cellpadding="0" cellspacing="0">
	           <tr>
		            <td rowspan="2">
			            <img src="../../images/learn_bg_top_left.jpg" width="534" height="99" alt="" /></td>
		            <td colspan="2" align="center" style="width:460px; height:58px; background-image:url('../../images/learn_bg_top_mid.jpg'); background-repeat:no-repeat;">
			           </td>
		            <td rowspan="2">
			            <img src="../../images/learn_bg_top_right.jpg" width="31" height="99" alt="" /></td>
	            </tr>
	            <tr>
		            <td  align="center"  style="width:225px; height:41px; background-image:url('../../images/learn_menu_cl.jpg'); background-repeat:no-repeat;">
                      <%-- <asp:LinkButton ID="lbtnStudy" runat="server" Text="课 程 学 习" 
                            CssClass="menutitle" onclick="lbtnStudy_Click"></asp:LinkButton>--%>
			          </td>
		            <td align="center"  style="width:235px; height:41px; background-image:url('../../images/learn_menu_sr.jpg'); background-repeat:no-repeat">
			         
                     <%-- <asp:LinkButton ID="lbtnexam" runat="server" Text="课 程 测 试" CssClass="menutitle"></asp:LinkButton>--%>
                      </td>
	            </tr>
            </table>
         </td>
	</tr>
	
    </table>
      <div style=" position:absolute; left:500px; top:30px; z-index:10000; width:510px; text-align:right"> <asp:Label ID="lblClassName" runat="server" CssClass="topclassName" ></asp:Label></div> 
    <div><img src="../../images/learn_bg_m1.jpg" width="1025" height="31" alt="" /></div>
    <div class="classcontent">
  
      <div id="divclassInfo"  style="height:auto" >
     <div style="width:85%; ">
     <h3>课程测试题：</h3>
     <asp:HiddenField ID="hdfEmpId" runat="server" />
       <asp:Repeater runat="server" ID="repQuestion"  
             onitemdatabound="repQuestion_ItemDataBound" >
        <ItemTemplate>
            <table  width="100%">
                <tr><td><%#Eval("SN") %>:&nbsp;&nbsp;<asp:Label ID="lblQuestion" runat="server" Text='<%#Eval("Question") %>'></asp:Label></td></tr>
                <tr>
                    <td><asp:RadioButtonList ID="rbtnanswer" runat="server"  onselectedindexchanged="rbtnanswer_SelectedIndexChanged" RepeatDirection="Horizontal" ></asp:RadioButtonList> 
                        <asp:HiddenField ID="hdfAnswer" runat="server" Value='<%#Eval("Answer") %>' />
                        <asp:HiddenField ID="hdfScore" runat="server" Value='<%#Eval("Score") %>' />
                         <asp:HiddenField ID="hdfChoseA" runat="server" Value='<%#Eval("ChoseA") %>' />
                         <asp:HiddenField ID="hdfChoseB" runat="server" Value='<%#Eval("ChoseB") %>' />
                         <asp:HiddenField ID="hdfChoseC" runat="server" Value='<%#Eval("ChoseC") %>' />
                         <asp:HiddenField ID="hdfChoseD" runat="server" Value='<%#Eval("ChoseD") %>' />
                        
                        <asp:HiddenField ID="hdfExercisesTypeId" runat="server" Value='<%#Eval("ExercisesTypeId") %>' />
                         <asp:HiddenField ID="hdfExercisesId" runat="server" Value='<%#Eval("ExercisesId") %>' />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
       </asp:Repeater>
             <table width='100%'  border='0' cellpadding='1' cellspacing='1'  align="center" style="margin-top:8px">
        <tr >
          <td  align='center'><table border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td width='90' align='center'>&nbsp;</td>
                <td width='70'>&nbsp;</td>
                <td width='160'>
               <asp:ImageButton ID="btnSumbit" runat="server" ImageUrl="../../images/btn_submit.png" Width="114px" Height="33px" AlternateText="提交" OnClick="btnSumbit_Click" />
               </td>
                <td width='110'>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
       
     </div> 
      </div>
     </div>
     <div><img src="../../images/learn_bg_bottom.jpg" width="1025" height="64" alt="" /></div>
   
    </div>
     <div id="floatBoxBg1" runat="server" visible="false" style="width:100%;height:100%;background:#000;filter:alpha(opacity=50);opacity:0.5;position:absolute;top:0;left:0; z-index:1000000"></div>
     <div  id="divtongji" runat="server"  visible="false" style="border:#ccc 2px solid;position:absolute;top:20%;left:40%; z-index:1000000;width:400px; height:190px; overflow:auto; background-color:#eee">  
     <div style="height:25px;padding:0; margin:0;background:#0889CB;color:#000; width:100%;"><div style="float:left; color:#ffffff; font-size:14px; font-weight:bold; width:356px">测试统计对话框</div><span>
         <asp:ImageButton ID="ibtnclosedivtongji" runat="server"  
             ImageUrl="../skin/images/frame/btn_close.gif" 
             onclick="ibtnclosedivtongji_Click"/></span></div>
              
          <table width="100%" style="padding-left:10px">
            <tr>
                <td  width="50%">答对：</td>
                <td><asp:Label ID="lblrightnum" runat="server" ForeColor="Red"></asp:Label> 题</td>
            </tr>
            <tr>
                <td>答错：</td>
                <td><asp:Label ID="lblwrongnum" runat="server" ForeColor="Red"></asp:Label> 题</td>
            </tr>
             <tr>
                <td>通过测试需要的分数：</td>
                <td><asp:Label ID="lblPassScore" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <td> 本次测试得分：</td>
                <td><asp:Label ID="lblScore" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
             <tr>
                <td colspan="2" align="center"><asp:Button ID="btnok" runat="server"  Text="确定" 
                        onclick="btnok_Click" /></td>
               
            </tr>
          </table>
       
        
     
       </div>
    </ContentTemplate>
    
    </asp:UpdatePanel>
    </form>
</body>
</html>
